package com.itheima.service.impl;

import com.itheima.dao.mapper.ExamineMapper;
import com.itheima.pojo.dto.ExamineDTO;
import com.itheima.service.ExamineService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
@Slf4j
public class ExamineServiceImpl implements ExamineService {
    @Autowired
    private ExamineMapper examineMapper;
    /**
     * 新增检测项
     * @param examineDTO
     */
    public void save(ExamineDTO examineDTO) {
        examineDTO.setCreateTime(LocalDateTime.now());
        examineMapper.insert(examineDTO);
    }
}
